package com.maegul.data.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;

import org.springframework.stereotype.Repository;

import com.maegul.data.dao.AbstractDAO;
import com.maegul.data.entities.MediaSource;

@Repository(value = "mediaSourceDao")
public class MediaSourceDaoImpl extends AbstractDAO<MediaSource> implements
		MediaSourceDao {

	@PersistenceContext(type = PersistenceContextType.EXTENDED)
	private EntityManager em;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.maegul.data.dao.DAO#getEntityManager()
	 */
	public EntityManager getEntityManager() {
		return em;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.maegul.data.dao.DAO#getClazz()
	 */
	public Class<MediaSource> getClazz() {
		return MediaSource.class;
	}
}
